<?php

class Form_TaglabelForm extends Form_Custom_General {

    public function init() {

        $prp_tgtype_id= $this->createElement('hidden', 'prp_tgtype_id')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "60"));
        $this->addElement($prp_tgtype_id);

        $prp_tgtype_title = $this->createElement('text', 'prp_tgtype_title')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Please enter label')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array('class' => "form-control", "placeholder" => "Tag Label"));
        $this->addElement($prp_tgtype_title);
        
        $prp_tgtype_type = $this->createElement('select', 'prp_tgtype_type')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Please select category')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array('class' => "form-control select2", "placeholder" => ""));
        $this->addElement($prp_tgtype_type);
        
        $prp_tgtype_sub_tag = $this->createElement('select', 'prp_tgtype_sub_tag')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Please select subcategory')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array('class' => "form-control select2", "placeholder" => ""));
        $this->addElement($prp_tgtype_sub_tag);
        
        $prp_tgtype_lang_id = $this->createElement('select', 'prp_tgtype_lang_id')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => 'Please select language')))
                ->addFilters(array(
                    new Zend_Filter_StringTrim()
                ))
                ->setAttribs(Array('class' => "form-control select2", "placeholder" => ""));
        $this->addElement($prp_tgtype_lang_id);
        
      
    }

}